package com.funcourse.demo.wechat.client;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter;

public class WechatJacksonMessageConverter extends AbstractJackson2HttpMessageConverter {
  public WechatJacksonMessageConverter(ObjectMapper objectMapper) {
    super(objectMapper, new MediaType[]{MediaType.APPLICATION_JSON,MediaType.TEXT_PLAIN, new MediaType("application", "*+json")});
  }
}
